import Vue from 'vue'
import VueRouter from 'vue-router'
// 首页
import Index from '../views/index/Index' 
import Plan from '../views/plan/plan' 
// 详情页
import Scenicspot from '../views/scenicspot/index'
import ViewDetail from '../views/scenicspot/viewDetail'
Vue.use(VueRouter)

const routes = [
  
  {
    path: '/',
    name: 'Plan',
    component: Plan
  },
  {
    path: '/index',
    name: 'Index',
    component: Index
  },
  {
    path:'/scenicspot',
    name:'Scenicspot',
    component:Scenicspot
  },
  {
    path:'/viewDetail',
    name:'ViewDetail',
    component:ViewDetail
  },
]

const router = new VueRouter({
  routes
})

export default router

